﻿<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>盖章</title>
	<link href="jquery.zsign.css" rel="stylesheet" type="text/css" />
	<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="js/jquery.zsign.js" type="text/javascript"></script>
</head>
<body>

	<div id="test" style="width:595px;height:418px;border:1px solid red;margin:40px auto; position:relative;">
		<img src="images/asd233234.png" />
	</div>
		<div class='panel'>
			<a href="javascript:void(0);" class='btn add btn_sign' >盖 章</a>
			<button class='btn cancel'>关 闭</button>
		</div>
		<input type="button" id="print" value="打印">

	<script type="text/javascript">
			$(".add").click(function(){
				$(this).attr("disabled",true);
				$("#test").zSign({ 
					img: 'images/1.gif',
					draggable:true,
					offsetX:"45",
					offsetY:"45"
				});
			});

			$("#print").click(function(){
				window.print();
			});
	</script>

</body>
</html>
